package com.zrf.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zrf.gulimall.common.database.utils.PageUtils;
import com.zrf.gulimall.product.entity.SkuInfoEntity;
import com.zrf.gulimall.product.vo.web.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author zrf
 * @email 120662332@qq.com
 * @date 2021-01-23 16:07:19
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

	/**
	 * 根据spuId查询
	 * @param spuId
	 * @return
	 */
	List<SkuInfoEntity> getSkusBySpuId(Long spuId);

	/**
	 * 商品详情
	 * @param skuId 商品id
	 * @return 页面信息
	 */
	SkuItemVo itemInfo(String skuId) throws ExecutionException, InterruptedException;
}

